  /**
   * Generate time : 2016-05-11 15:00:47
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cn.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCNQty 
 * table comment : 其他样数据 
 */
public class ZMCNQty extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdStatus = "草拟";		/* 状态*/
	private String fdSyDate = " ";		/* 收样日期*/
	private String fdMyNum = " ";		/* 煤样编码*/
	private BigDecimal fdMyMt = new BigDecimal("0");		/* 全水分Mt(%)*/
	private BigDecimal fdMyMad = new BigDecimal("0");		/* 水分Mad(%)*/
	private BigDecimal fdMyVd = new BigDecimal("0");		/* 挥发分Vd(%)*/
	private BigDecimal fdMySt = new BigDecimal("0");		/* 硫分St,d(%)*/
	private BigDecimal fdMyCd = new BigDecimal("0");		/* 碳Cd(%)*/
	private BigDecimal fdMyAd = new BigDecimal("0");		/* 灰分Ad(%)*/
	private BigDecimal fdMyHdaf = new BigDecimal("0");		/* 干燥无灰基氢Hdaf(%)*/
	private BigDecimal fdMyQgr = new BigDecimal("0");		/* 发热量Qgr.v.d(MJ/kg)*/
	private BigDecimal fdMyQnet = new BigDecimal("0");		/* 发热量Qnet,v,ar(J/g)*/
	private BigDecimal fdMyQnetzs = new BigDecimal("0");		/* 折算收到基恒容低位发热量Qnet,v,ar*/
	private BigDecimal fdMyTrd = new BigDecimal("0");		/* 真密度TRD,d*/
	private BigDecimal fdJcsf = new BigDecimal("0");		/* 检测收费*/
	private String fdJbr = " ";		/* 经办人*/
	private String fdShr = " ";		/* 审核人*/
	private String fdSjbh = " ";		/* 收据编号*/
	private String fdRemark = " ";		/* 备注*/
	private String fdForeignId = " ";		/* 外键*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSyDate");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("收样日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyNum");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("煤样编码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("全水分Mt(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyMad");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("水分Mad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyVd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("挥发分Vd(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMySt");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("硫分St,d(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyCd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("碳Cd(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyAd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("灰分Ad(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyHdaf");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("干燥无灰基氢Hdaf(%)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQgr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qgr.v.d(MJ/kg)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQnet");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("发热量Qnet,v,ar(J/g)");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyQnetzs");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("折算收到基恒容低位发热量Qnet,v,ar");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMyTrd");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(5);
	eiColumn.setDescName("真密度TRD,d");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJcsf");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(8);
	eiColumn.setDescName("检测收费");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJbr");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("经办人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdShr");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("审核人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSjbh");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("收据编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignId");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("外键");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCNQty() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdSyDate - 收样日期
	 * @return the fdSyDate
	 */
	public String getFdSyDate() {
		return this.fdSyDate;
	}
	
	/**
	 * set the fdSyDate - 收样日期
	 */
	public void setFdSyDate(String fdSyDate) {
		this.fdSyDate = fdSyDate;
	}
	/**
	 * get the fdMyNum - 煤样编码
	 * @return the fdMyNum
	 */
	public String getFdMyNum() {
		return this.fdMyNum;
	}
	
	/**
	 * set the fdMyNum - 煤样编码
	 */
	public void setFdMyNum(String fdMyNum) {
		this.fdMyNum = fdMyNum;
	}
	/**
	 * get the fdMyMt - 全水分Mt(%)
	 * @return the fdMyMt
	 */
	public BigDecimal getFdMyMt() {
		return this.fdMyMt;
	}
	
	/**
	 * set the fdMyMt - 全水分Mt(%)
	 */
	public void setFdMyMt(BigDecimal fdMyMt) {
		this.fdMyMt = fdMyMt;
	}
	/**
	 * get the fdMyMad - 水分Mad(%)
	 * @return the fdMyMad
	 */
	public BigDecimal getFdMyMad() {
		return this.fdMyMad;
	}
	
	/**
	 * set the fdMyMad - 水分Mad(%)
	 */
	public void setFdMyMad(BigDecimal fdMyMad) {
		this.fdMyMad = fdMyMad;
	}
	/**
	 * get the fdMyVd - 挥发分Vd(%)
	 * @return the fdMyVd
	 */
	public BigDecimal getFdMyVd() {
		return this.fdMyVd;
	}
	
	/**
	 * set the fdMyVd - 挥发分Vd(%)
	 */
	public void setFdMyVd(BigDecimal fdMyVd) {
		this.fdMyVd = fdMyVd;
	}
	/**
	 * get the fdMySt - 硫分St,d(%)
	 * @return the fdMySt
	 */
	public BigDecimal getFdMySt() {
		return this.fdMySt;
	}
	
	/**
	 * set the fdMySt - 硫分St,d(%)
	 */
	public void setFdMySt(BigDecimal fdMySt) {
		this.fdMySt = fdMySt;
	}
	/**
	 * get the fdMyCd - 碳Cd(%)
	 * @return the fdMyCd
	 */
	public BigDecimal getFdMyCd() {
		return this.fdMyCd;
	}
	
	/**
	 * set the fdMyCd - 碳Cd(%)
	 */
	public void setFdMyCd(BigDecimal fdMyCd) {
		this.fdMyCd = fdMyCd;
	}
	/**
	 * get the fdMyAd - 灰分Ad(%)
	 * @return the fdMyAd
	 */
	public BigDecimal getFdMyAd() {
		return this.fdMyAd;
	}
	
	/**
	 * set the fdMyAd - 灰分Ad(%)
	 */
	public void setFdMyAd(BigDecimal fdMyAd) {
		this.fdMyAd = fdMyAd;
	}
	/**
	 * get the fdMyHdaf - 干燥无灰基氢Hdaf(%)
	 * @return the fdMyHdaf
	 */
	public BigDecimal getFdMyHdaf() {
		return this.fdMyHdaf;
	}
	
	/**
	 * set the fdMyHdaf - 干燥无灰基氢Hdaf(%)
	 */
	public void setFdMyHdaf(BigDecimal fdMyHdaf) {
		this.fdMyHdaf = fdMyHdaf;
	}
	/**
	 * get the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 * @return the fdMyQgr
	 */
	public BigDecimal getFdMyQgr() {
		return this.fdMyQgr;
	}
	
	/**
	 * set the fdMyQgr - 发热量Qgr.v.d(MJ/kg)
	 */
	public void setFdMyQgr(BigDecimal fdMyQgr) {
		this.fdMyQgr = fdMyQgr;
	}
	/**
	 * get the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 * @return the fdMyQnet
	 */
	public BigDecimal getFdMyQnet() {
		return this.fdMyQnet;
	}
	
	/**
	 * set the fdMyQnet - 发热量Qnet,v,ar(J/g)
	 */
	public void setFdMyQnet(BigDecimal fdMyQnet) {
		this.fdMyQnet = fdMyQnet;
	}
	/**
	 * get the fdMyQnetzs - 折算收到基恒容低位发热量Qnet,v,ar
	 * @return the fdMyQnetzs
	 */
	public BigDecimal getFdMyQnetzs() {
		return this.fdMyQnetzs;
	}
	
	/**
	 * set the fdMyQnetzs - 折算收到基恒容低位发热量Qnet,v,ar
	 */
	public void setFdMyQnetzs(BigDecimal fdMyQnetzs) {
		this.fdMyQnetzs = fdMyQnetzs;
	}
	/**
	 * get the fdMyTrd - 真密度TRD,d
	 * @return the fdMyTrd
	 */
	public BigDecimal getFdMyTrd() {
		return this.fdMyTrd;
	}
	
	/**
	 * set the fdMyTrd - 真密度TRD,d
	 */
	public void setFdMyTrd(BigDecimal fdMyTrd) {
		this.fdMyTrd = fdMyTrd;
	}
	/**
	 * get the fdJcsf - 检测收费
	 * @return the fdJcsf
	 */
	public BigDecimal getFdJcsf() {
		return this.fdJcsf;
	}
	
	/**
	 * set the fdJcsf - 检测收费
	 */
	public void setFdJcsf(BigDecimal fdJcsf) {
		this.fdJcsf = fdJcsf;
	}
	/**
	 * get the fdJbr - 经办人
	 * @return the fdJbr
	 */
	public String getFdJbr() {
		return this.fdJbr;
	}
	
	/**
	 * set the fdJbr - 经办人
	 */
	public void setFdJbr(String fdJbr) {
		this.fdJbr = fdJbr;
	}
	/**
	 * get the fdShr - 审核人
	 * @return the fdShr
	 */
	public String getFdShr() {
		return this.fdShr;
	}
	
	/**
	 * set the fdShr - 审核人
	 */
	public void setFdShr(String fdShr) {
		this.fdShr = fdShr;
	}
	/**
	 * get the fdSjbh - 收据编号
	 * @return the fdSjbh
	 */
	public String getFdSjbh() {
		return this.fdSjbh;
	}
	
	/**
	 * set the fdSjbh - 收据编号
	 */
	public void setFdSjbh(String fdSjbh) {
		this.fdSjbh = fdSjbh;
	}
	/**
	 * get the fdRemark - 备注
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	/**
	 * get the fdForeignId - 外键
	 * @return the fdForeignId
	 */
	public String getFdForeignId() {
		return this.fdForeignId;
	}
	
	/**
	 * set the fdForeignId - 外键
	 */
	public void setFdForeignId(String fdForeignId) {
		this.fdForeignId = fdForeignId;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdSyDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSyDate")), fdSyDate));
		setFdMyNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMyNum")), fdMyNum));
		setFdMyMt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMt")), fdMyMt));
		setFdMyMad(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyMad")), fdMyMad));
		setFdMyVd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyVd")), fdMyVd));
		setFdMySt(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMySt")), fdMySt));
		setFdMyCd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyCd")), fdMyCd));
		setFdMyAd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyAd")), fdMyAd));
		setFdMyHdaf(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyHdaf")), fdMyHdaf));
		setFdMyQgr(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQgr")), fdMyQgr));
		setFdMyQnet(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQnet")), fdMyQnet));
		setFdMyQnetzs(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyQnetzs")), fdMyQnetzs));
		setFdMyTrd(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMyTrd")), fdMyTrd));
		setFdJcsf(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdJcsf")), fdJcsf));
		setFdJbr(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdJbr")), fdJbr));
		setFdShr(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdShr")), fdShr));
		setFdSjbh(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSjbh")), fdSjbh));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdForeignId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignId")), fdForeignId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdSyDate",StringUtils.toString(fdSyDate, eiMetadata.getMeta("fdSyDate")));	
			map.put("fdMyNum",StringUtils.toString(fdMyNum, eiMetadata.getMeta("fdMyNum")));	
			map.put("fdMyMt",StringUtils.toString(fdMyMt, eiMetadata.getMeta("fdMyMt")));	
			map.put("fdMyMad",StringUtils.toString(fdMyMad, eiMetadata.getMeta("fdMyMad")));	
			map.put("fdMyVd",StringUtils.toString(fdMyVd, eiMetadata.getMeta("fdMyVd")));	
			map.put("fdMySt",StringUtils.toString(fdMySt, eiMetadata.getMeta("fdMySt")));	
			map.put("fdMyCd",StringUtils.toString(fdMyCd, eiMetadata.getMeta("fdMyCd")));	
			map.put("fdMyAd",StringUtils.toString(fdMyAd, eiMetadata.getMeta("fdMyAd")));	
			map.put("fdMyHdaf",StringUtils.toString(fdMyHdaf, eiMetadata.getMeta("fdMyHdaf")));	
			map.put("fdMyQgr",StringUtils.toString(fdMyQgr, eiMetadata.getMeta("fdMyQgr")));	
			map.put("fdMyQnet",StringUtils.toString(fdMyQnet, eiMetadata.getMeta("fdMyQnet")));	
			map.put("fdMyQnetzs",StringUtils.toString(fdMyQnetzs, eiMetadata.getMeta("fdMyQnetzs")));	
			map.put("fdMyTrd",StringUtils.toString(fdMyTrd, eiMetadata.getMeta("fdMyTrd")));	
			map.put("fdJcsf",StringUtils.toString(fdJcsf, eiMetadata.getMeta("fdJcsf")));	
			map.put("fdJbr",StringUtils.toString(fdJbr, eiMetadata.getMeta("fdJbr")));	
			map.put("fdShr",StringUtils.toString(fdShr, eiMetadata.getMeta("fdShr")));	
			map.put("fdSjbh",StringUtils.toString(fdSjbh, eiMetadata.getMeta("fdSjbh")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			map.put("fdForeignId",StringUtils.toString(fdForeignId, eiMetadata.getMeta("fdForeignId")));	
			
		return map;
	
	}
}